#include "SDL/SDL.h"
#include "SDL/SDL_thread.h"
#include "texture.h"
#include <string>
#include <list>

using namespace std;

struct image;

class StillImage
{
public:
	StillImage(float x, float y, float xsize, float ysize, string tex);
	~StillImage();
	void Render();
private:
	float x, y;
	float xsize, ysize;
	string texture;
};

class Canvas
{
public:
	Canvas();
	~Canvas();
	StillImage* AddImage(float x, float y, float xsize, float ysize, string tex);
	void DelImage(StillImage* ident);
	void SetSize(float x1, float y1, float x2, float y2);
	void Render();

private:
	list<StillImage*> image_list;
	float minx, miny, maxx, maxy;
};

